﻿<UserControl x:Class="Albatross.SampleClient.Views.CompositeMainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:commonViews="clr-namespace:Albatross.WPF.Common.Views;assembly=Albatross.WPF.Common"
			 xmlns:local="clr-namespace:Albatross.SampleClient.Views"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" x:Name="View">
	<DockPanel>
		<ToolBar DockPanel.Dock="Top">
			<Button Command="{Binding Test1Command}" CommandParameter="{Binding Path=(commonViews:Attached.ViewService), ElementName=View}">Test1</Button>
			<Button Command="{Binding Test2Command}" CommandParameter="{Binding Path=(commonViews:Attached.ViewService), ElementName=View}">Test2</Button>
			<Button Command="{Binding Test3Command}" CommandParameter="{Binding Path=(commonViews:Attached.ViewService), ElementName=View}">Test3</Button>
			<Button Command="{Binding Test4Command}" CommandParameter="{Binding Path=(commonViews:Attached.ViewService), ElementName=View}">Test4</Button>
			<Button Command="{Binding Test5Command}" CommandParameter="{Binding Path=(commonViews:Attached.ViewService), ElementName=View}">Test5</Button>
			<Button Command="{Binding Test6Command}" CommandParameter="{Binding Path=(commonViews:Attached.ViewService), ElementName=View}">Test6</Button>
			<Separator/>
			<Button Command="{Binding Test1CompositeCommand}" CommandParameter="{Binding Path=(commonViews:Attached.ViewService), ElementName=View}">Test1-Composite</Button>
			<Button Command="{Binding Test2CompositeCommand}" CommandParameter="{Binding Path=(commonViews:Attached.ViewService), ElementName=View}">Test2-Composite</Button>
			<Button Command="{Binding Test3CompositeCommand}" CommandParameter="{Binding Path=(commonViews:Attached.ViewService), ElementName=View}">Test3-Composite</Button>
		</ToolBar>
		<CheckBox IsChecked="{Binding CanClose}" DockPanel.Dock="Top">Can Close</CheckBox>
		<Border Margin="2" BorderBrush="Silver" BorderThickness="1">
			<ContentControl commonViews:Attached.CompositeRegion="Region1" Name="MainContentControl" />
		</Border>
	</DockPanel>
	<commonViews:Attached.ViewService>
		<commonViews:CompositeViewService />
	</commonViews:Attached.ViewService>
</UserControl>
